<template>
	<view class="container">
		<!-- 顶部标题栏 -->


		<!-- 支付成功卡片 -->
		<view class="card">
			<view class="icon">
				<image src="../../static/images/lzx/对勾.png" class="success-icon" />
			</view>
			<text class="status">支付成功</text>
			<text class="amount">39.90</text>
			<text class="order-number">预订单号：32452536363634</text>

			<!-- 按钮 -->
			<button class="btn primary-btn" @click="shouye">返回首页</button>
			<button class="btn secondary-btn" disabled>订单详情</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			shouye() {

				uni.switchTab({
					url: '/pages/index/index' // 确保路径以 `/` 开头
				});
			},
		}
	}
</script>

<style>
	/* 页面容器 */
	.container {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		background-color: #f8f9fa;
		height: 100vh;
	}



	/* 卡片 */
	.card {
		position: relative;
		width: 90%;
		background-color: #fff;
		border-radius: 10px;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
		text-align: center;
		margin-top: 30px;
	}

	.icon {
		margin-bottom: 15px;
	}

	.success-icon {
		width: 150px;
		height: 150px;
	}

	.status {
		/* position: absolute;
		top: 270rpx;
		left: 30%; */
		font-size: 18px;
		font-weight: bold;
		color: #333;
		margin-bottom: 10px;
	}

	.amount {
		/* position: absolute;
		top: 270rpx;
		left: 50%; */
		font-size: 24px;
		font-weight: bold;
		color: #007aff;
		margin-bottom: 10px;
	}

	.order-number {
		font-size: 14px;
		color: #666;
		margin-bottom: 20px;
	}

	/* 按钮 */
	.btn {
		width: 100%;
		height: 40px;
		border-radius: 20px;
		font-size: 16px;
		line-height: 40px;
		text-align: center;
		margin-bottom: 10px;
	}

	.primary-btn {
		background-color: #007aff;
		color: #fff;
	}

	.secondary-btn {
		background-color: #ccc;
		color: #666;
	}

	.secondary-btn[disabled] {
		opacity: 0.6;
	}
</style>